@import './common';

.details-wrapper {
  margin: 0 auto;
  max-width: 1320px;

  >.article-breadcrumb {
    padding: 20px;
    max-width: 1320px;

    >ul {
      display: flex;
      display: -webkit-flex;

      >li {
        padding: 0 6px;
        color: #999;
        font-size: 12px;

        >a {
          color: #999;
        }
      }
    }
  }

  >.details-content {
    padding: 10px 20px 50px;
    display: flex;
    display: -webkit-flex;
    max-width: 1320px;

    >.details-left {
      width: 60%;
      display: flex;
      display: -webkit-flex;

      >.select-box {
        display: inline-block;
        margin-right: 8%;
        padding: 28px 0;

        >.swiper-container {
          margin: 0;
          height: 326px;
          width: 74px;

          >.swiper-wrapper {
            >.swiper-slide {
              margin-bottom: 10px;
              height: 74px !important;
              width: 100%;
              border: 1px solid #d9d9d9;
              cursor: pointer;

              img {
                width: 100%;
              }
            }

            >.border-active {
              border-color: #000;
            }
          }
        }
      }

      >.main-box {
        position: relative;
        width: 65.2%;

        >.love {
          position: absolute;
          top: 0;
          right: 40px;
          cursor: pointer;

          >.icon-icon-test {
            font-size: 25px;

            &:hover~.icon-aixin1 {
              display: block;
            }
          }

          >.icon-aixin1 {
            position: absolute;
            top: 0;
            left: 0;
            font-size: 25px;
            display: none;

            &:hover {
              display: block;
            }
          }
        }

        >.text {
          padding: 0 16px;
          position: absolute;
          top: 0;
          left: 57px;
          height: 30px;
          line-height: 30px;
          font-size: 14px;
          color: #fff;
          background-color: #000;
          text-align: center;
        }

        >.main-pic {
          width: 501px;

          >img {
            width: 100%;
          }
        }
      }
    }

    >.details-right {
      padding: 0 68px 0 20px;
      width: 40%;

      >.right-top {
        >.right-title {
          >h2 {
            padding-bottom: 4px;
            font-size: 18px;
            line-height: 120%;
          }

          >h1 {
            font-size: 24px;
            padding-bottom: 10px;
          }
        }

        >.right-star {
          margin-bottom: 25px;
          display: flex;
          display: -webkit-flex;
          align-items: center;

          >.star {
            margin-bottom: 10px;
            margin-top: 17px;

            >.iconfont {
              font-size: 10px;
            }
          }

          >.amout {
            margin-top: 12px;
            margin-left: 20px;
            font-size: 12px;
            color: #999;
          }
        }
      }

      >.details-description {
        padding: 0 20px 6px 0;
        font-size: 14px;
        line-height: 21px;
        color: #999;
        display: flex;
        display: -webkit-flex;
        flex-direction: column;

        >p {
          &:last-of-type {
            align-self: flex-end;
            color: #000;
            text-decoration: underline;
          }
        }
      }

      >.details-color {
        >.select-color {
          >.select-head {
            >ul {
              display: flex;
              display: -webkit-flex;
              border-top: 1px solid #d4d4d4;
              border-left: 1px solid #d4d4d4;
              color: #999;

              >li {
                cursor: pointer;
                height: 35px;
                line-height: 35px;
                text-align: center;
                font-size: 14px;
                width: 50%;
                border-right: 1px solid #d4d4d4;
                border-bottom: 1px solid #000;
              }

              >.active {
                position: relative;
                color: #000;
                border-bottom: none;

                &::after {
                  content: '';
                  display: block;
                  position: absolute;
                  top: -1px;
                  right: -1px;
                  left: -1px;
                  bottom: 0;
                  border: 1px solid #000;
                  border-bottom: none;
                }
              }
            }
          }

          >.select-body {
            padding-bottom: 23px;

            >ul {
              display: flex;
              display: -webkit-flex;
              flex-wrap: wrap;

              >li {
                margin-top: 6px;
                padding: 7px;
                cursor: pointer;
                border: 1px solid transparent;

                >span {
                  display: inline-block;
                  width: 18px;
                  height: 18px;
                }

                &:hover {
                  border: 1px solid #000;
                }
              }
            }
          }
        }

        >.color-box {
          padding: 0 23px 0 10px;
          display: flex;
          display: -webkit-flex;
          align-items: center;
          width: 100%;
          height: 45px;
          border: 1px solid #dadada;
          font-size: 14px;

          >span {
            display: inline-block;
            width: 20px;
            height: 20px;
            background-color: #b52232;
          }

          >p {
            margin-left: 10px;
          }

          >.iconfont {
            margin-left: 90px;
            font-size: 10px;
          }
        }
      }

      >.details-service {
        margin-top: 20px;
        margin-bottom: 11px;
        display: flex;
        display: -webkit-flex;
        align-items: center;
        font-size: 14px;

        >p {
          width: 17px;
          height: 17px;
          background-color: #fff;
          border: 1px solid #000;
        }

        >span {
          margin-left: 10px;
        }

        >.more {
          margin-left: 276px;
          font-size: 13px;
          text-decoration: underline;
        }
      }

      >.details-handle {
        padding-top: 13px;
        font-size: 13px;

        >.product-price {
          margin-bottom: 20px;
          font-size: 26px;
        }

        >.product-container {
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;

          >.cart-amout {
            margin-right: 10px;
            width: 26%;
            text-align: center;

            >.num-box {
              margin: 0 auto;
              width: 130px;
              height: 45px;
              border: 1px solid #e1e1e1;
              background-color: #fff;
              display: flex;
              display: -webkit-flex;

              >a {
                padding: 0 8px;
                width: 36px;
                line-height: 45px;
                background: #f2f2f2;

                >.iconfont {
                  display: block;
                  font-size: 12px;
                }

                &:nth-of-type(2) {
                  background-color: #fff;
                }
              }

              >input {
                width: 55px;
                height: 43px;
                line-height: 43px;
                text-align: center;
                border: none;
              }
            }
          }

          >.product-btn {
            display: flex;
            display: -webkit-flex;

            >.btn {
              width: 142px;
              height: 45px;
              line-height: 43px;
              text-align: center;
              border: 1px solid #000;
              background-color: #fff;
              cursor: pointer;
            }

            >.bgc {
              background-color: #000;
              color: #fff;
            }
          }
        }
      }

      >.details-inviting {
        margin-top: 28px;
        font-size: 14px;

        >p {
          margin-bottom: 10px;
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
        }

        >.inviting-box {
          position: relative;
          padding: 24.5px;
          background-color: #000;
          color: #fff;
          text-align: center;

          >p:first-of-type {
            margin-bottom: 9px;
            font-size: 16px;
          }

          >a {
            display: inline-block;
            margin-top: 10px;
            color: #fff;
            cursor: pointer;
            text-decoration: underline;
          }

          &::after {
            content: '';
            display: block;
            position: absolute;
            top: 10px;
            bottom: 10px;
            left: 10px;
            right: 10px;
            border: 2px solid #fff;
          }
        }
      }
    }
  }
}

.product-description {
  padding: 10px 20px 65px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #d9d9d9;

  >.product-title {
    margin: 0 auto;
    padding: 15px 67px;
    max-width: 1280px;
    border-bottom: 1px solid #d9d9d9;

    >li {
      padding: 15px 0;
      font-size: 18px;
      line-height: 22px;
    }
  }

  >.product-list {
    margin: 0 auto;
    padding: 30px 67px 0;
    max-width: 1280px;
    font-size: 14px;
    line-height: 1.2;
  }
}

.product-pic {
  margin: 0 auto;
  padding: 20px;
  max-width: 1320px;
  font-size: 0;

  >img {
    width: 100%;
  }
}

.product-comment {
  padding: 20px 20px 60px;
  background-color: #f7f7f7;

  .comment-container {
    margin: 0 auto;
    max-width: 1280px;
    background-color: #fff;

    >h3 {
      padding: 60px 0;
      font-size: 30px;
      text-align: center;
      background-color: #f7f7f7;
    }

    >.comment-total {
      padding: 50px 60px 40px;
      font-size: 0;
      display: flex;
      display: -webkit-flex;

      >p {
        width: 17%;
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 43px;
      }

      >.total-grade {
        display: inline-block;
        width: 53%;
        vertical-align: middle;

        >span {
          margin-right: 14px;
          font-size: 14px;
          line-height: 43px;
          letter-spacing: 1px;
        }

        >.iconfont {
          font-size: 10px;
        }
      }

      >.total-add {
        width: 30%;
        text-align: center;

        >a {
          display: inline-block;
          width: 180px;
          height: 45px;
          line-height: 43px;
          text-align: center;
          border: 1px solid #000;
          font-size: 14px;
        }
      }
    }

    >.comment-list {
      >.comment-item {
        padding: 40px 60px;
        border-top: 1px solid #dadada;
        font-size: 0;
        display: flex;
        display: -webkit-flex;
        align-items: flex-start;

        >.item-grade {
          padding-right: 20px;
          width: 19%;
          display: flex;
          display: -webkit-flex;
          justify-content: space-between;
          font-size: 14px;

          >.iconfont {
            font-size: 10px;
          }
        }

        >.item-detail {
          padding-right: 67px;
          width: 51%;
          color: #666;

          >ul {
            padding-bottom: 20px;
            display: flex;
            display: -webkit-flex;

            >li {
              position: relative;
              padding: 0 26px 0 12px;
              font-size: 14px;
              letter-spacing: .5px;

              &::after {
                margin-top: -2px;
                content: '';
                display: block;
                position: absolute;
                top: 50%;
                left: 0;
                width: 4px;
                height: 4px;
                border-radius: 50%;
                background-color: #666;
              }
            }
          }

          >p {
            margin-bottom: 30px;
            font-size: 14px;
            line-height: 24px;
            letter-spacing: .5px;
          }

          >.detail-buy {
            >.buy-way {
              margin-bottom: 10px;
              font-size: 14px;
              letter-spacing: .5px;
            }

            >.buy-time {
              padding-top: 10px;
              font-size: 14px;
              letter-spacing: .5px;
            }
          }
        }

        >.item-available {
          padding: 50px 0;
          width: 30%;
          text-align: center;
          color: #666;
          background-color: #f7f7f7;

          >p {
            margin-bottom: 10px;
            padding-bottom: 25px;
            font-size: 14px;
            letter-spacing: .5px;

            &:last-of-type {
              padding-bottom: 0;
            }
          }

          >.available-btn {
            padding: 0 15px 64px;

            >a {
              display: inline-block;
              width: 120px;
              max-width: 44%;
              background-color: #000;
              color: #fff;
              font-size: 14px;
              height: 45px;
              line-height: 43px;
              text-align: center;
              cursor: pointer;

              &:first-of-type {
                margin-right: 10px;
              }
            }
          }
        }
      }

      >.comment-btn {
        padding-bottom: 60px;
        text-align: center;

        >a {
          display: inline-block;
          width: 180px;
          background-color: #fff;
          color: #000;
          font-size: 14px;
          height: 45px;
          line-height: 43px;
          text-align: center;
          cursor: pointer;
          border: 1px solid #000;
        }
      }
    }
  }
}

.you-like {
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 80px;
  max-width: 1320px;
  >.you-like-title {
    padding: 40px 0;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
  }

  >.swiper-container {
    --swiper-theme-color: #000;
    margin: 0 auto;

    >.swiper-wrapper {
      >.swiper-slide {
        display: flex;
        display: -webkit-flex;
        justify-content: space-between;
        .two-container-right {
          width: 263px;
          border: 1px solid #000;

          .content-top {
            position: relative;

            a {
              img {
                width: 100%;
              }

              &:hover~.hiddle-btn {
                display: block;
              }
            }

            .tag {
              position: absolute;
              top: 0;
              left: 0;

              >span {
                display: inline-block;
                height: 22px;
                width: 48px;
                text-align: center;
                background-color: #000;
                font-size: 12px;
                letter-spacing: 0.75px;
                color: #fff;
                line-height: 22px;
              }
            }

            .hiddle-btn {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background-color: rgba(255, 255, 255, .55);
              display: none;

              .btn-box {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translateX(-50%) translateY(-50%);

                .btn-box-one {
                  >a {
                    position: relative;
                    display: inline-block;
                    width: 180px;
                    height: 45px;
                    background-color: #fff;
                    color: #000;
                    font-size: 14px;
                    line-height: 45px;
                    border: 1px solid #000;
                    text-align: center;

                    .icon-handbag {
                      position: absolute;
                      top: 0;
                      left: 15%;
                    }
                  }

                  .btn-active {
                    background-color: #000;
                    color: #fff;

                    &:hover {
                      .icon-handbag {
                        display: none;
                      }
                    }
                  }

                  .btn-hov {
                    &:hover {
                      background-color: #000;
                      color: #fff;
                    }
                  }

                  &:first-child {
                    >a {
                      margin-bottom: 10px;
                    }
                  }
                }
              }

              &:hover {
                display: block;
              }
            }
          }

          .content-bottom {
            text-align: center;

            >.goods-select {
              padding: 10px 22px 30px;
              height: 70px;
            }

            >h3 {
              margin-bottom: 3px;
              font-size: 14px;
              line-height: 18px;
              height: 36px;

              >a {
                color: #000;
                font-weight: 700;
              }
            }

            >p {
              a {
                color: #000;
              }

              &:nth-of-type(2) {
                margin-top: 5px;
                margin-bottom: 15px;
                height: 20px;
                line-height: 20px;

                a {
                  font-size: 12px;
                  color: #a2a2a2;
                }
              }
            }

            .bottom-last {
              margin-top: 17px;
              margin-bottom: 10px;
              display: flex;
              display: -webkit-flex;

              .last-star {
                width: 50%;

                .icon-wujiaoxing {
                  font-size: 10px;
                  color: grey;
                }
              }

              .last-money {
                width: 50%;

                >span {
                  margin-bottom: 5px;
                  font-size: 12px;
                  font-weight: 700;
                  color: #000;
                  position: relative;

                  &::before {
                    content: '';
                    display: block;
                    position: absolute;
                    left: -80%;
                    top: 0;
                    width: 1px;
                    height: 25px;
                    background-color: #dadada;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}